package lk.controller;

import lk.config.SecurityIgnore;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : lk
 * @date 2021/11/5 19:12
 * @description : TODO
 * @since 1.0
 **/
@RestController
@Slf4j
public class HelloController {


    @Autowired
    private SecurityIgnore securityIgnore;


    @GetMapping("test")
    public String test() {

        return "test";
    }


    @GetMapping("test1")
    public String test1() {

        String[] ignoreList = securityIgnore.getIgnoreList();

        log.info("ignoreList:{}", ignoreList);


        return "test1";
    }
}
